#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, t;
  cin >> a >> b >> c;

  if (t < 85) {
    cout << "Not qualified" << endl;
    return 0;
  }
  bool pd1 = (a >= 90);


  bool pd2 = (b >= 90);
  bool pd3 = (c >= 90);
  if (pd1 + pd2 + pd3 >= 2) {
    cout << "Qualified" << endl;
  } else {
    cout << "Not qualified" << endl;
  }

  return 0;
}